<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer&lt; FeatureT &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer&lt; FeatureT &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>An inner class containing pointers to the source and target feature clouds and the parameters needed to perform the correspondence search. This class extends <a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface.html">FeatureContainerInterface</a>, which contains abstract methods for any methods that do not depend on the FeatureT &mdash; these methods can thus be called from a pointer to <a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface.html">FeatureContainerInterface</a> without casting to the derived class.  
 <a href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="correspondence__rejection__features_8h_source.html">correspondence_rejection_features.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer&lt; FeatureT &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.png" usemap="#pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer_3C_20FeatureT_20_3E_map" alt=""/>
  <map id="pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer_3C_20FeatureT_20_3E_map" name="pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer_3C_20FeatureT_20_3E_map">
<area href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface.html" alt="pcl::registration::CorrespondenceRejectorFeatures::FeatureContainerInterface" shape="rect" coords="0,0,476,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:acba633fb1b68f525f1761c4ebab0b993"><td class="memItemLeft" align="right" valign="top"><a id="acba633fb1b68f525f1761c4ebab0b993"></a>
typedef <a class="el" href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a>&lt; FeatureT &gt;::ConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>FeatureCloudConstPtr</b></td></tr>
<tr class="separator:acba633fb1b68f525f1761c4ebab0b993"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5acd5da6a3cf163da2e9a1241a72bbc0"><td class="memItemLeft" align="right" valign="top"><a id="a5acd5da6a3cf163da2e9a1241a72bbc0"></a>
typedef boost::function&lt; int(const <a class="el" href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a>&lt; FeatureT &gt; &amp;, int, std::vector&lt; int &gt; &amp;, std::vector&lt; float &gt; &amp;)&gt;&#160;</td><td class="memItemRight" valign="bottom"><b>SearchMethod</b></td></tr>
<tr class="separator:a5acd5da6a3cf163da2e9a1241a72bbc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeca26f24ca19c2c1a94fce912dc7235f"><td class="memItemLeft" align="right" valign="top"><a id="aeca26f24ca19c2c1a94fce912dc7235f"></a>
typedef <a class="el" href="classpcl_1_1_point_representation.html">pcl::PointRepresentation</a>&lt; FeatureT &gt;::ConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>PointRepresentationConstPtr</b></td></tr>
<tr class="separator:aeca26f24ca19c2c1a94fce912dc7235f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aadd732e469e13328e661f93a14d88464"><td class="memItemLeft" align="right" valign="top"><a id="aadd732e469e13328e661f93a14d88464"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aadd732e469e13328e661f93a14d88464">~FeatureContainer</a> ()</td></tr>
<tr class="memdesc:aadd732e469e13328e661f93a14d88464"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty destructor <br /></td></tr>
<tr class="separator:aadd732e469e13328e661f93a14d88464"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9626ec54b417a4b7c0a7630441584931"><td class="memItemLeft" align="right" valign="top"><a id="a9626ec54b417a4b7c0a7630441584931"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setSourceFeature</b> (const FeatureCloudConstPtr &amp;source_features)</td></tr>
<tr class="separator:a9626ec54b417a4b7c0a7630441584931"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a77eebbdfb3ed3b09b52c983ed5262a"><td class="memItemLeft" align="right" valign="top"><a id="a4a77eebbdfb3ed3b09b52c983ed5262a"></a>
FeatureCloudConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>getSourceFeature</b> ()</td></tr>
<tr class="separator:a4a77eebbdfb3ed3b09b52c983ed5262a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdba736bda80b99da2bef608fb5aa5d9"><td class="memItemLeft" align="right" valign="top"><a id="afdba736bda80b99da2bef608fb5aa5d9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setTargetFeature</b> (const FeatureCloudConstPtr &amp;target_features)</td></tr>
<tr class="separator:afdba736bda80b99da2bef608fb5aa5d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40fbb8b34f2ae60193987393a9448e80"><td class="memItemLeft" align="right" valign="top"><a id="a40fbb8b34f2ae60193987393a9448e80"></a>
FeatureCloudConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>getTargetFeature</b> ()</td></tr>
<tr class="separator:a40fbb8b34f2ae60193987393a9448e80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cd4d6fa0baa1427eba7dc8ebb40c45e"><td class="memItemLeft" align="right" valign="top"><a id="a7cd4d6fa0baa1427eba7dc8ebb40c45e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setDistanceThreshold</b> (double thresh)</td></tr>
<tr class="separator:a7cd4d6fa0baa1427eba7dc8ebb40c45e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0c6cf6290ca4d7da4faf5ded6d4e669"><td class="memItemLeft" align="right" valign="top"><a id="ae0c6cf6290ca4d7da4faf5ded6d4e669"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>isValid</b> ()</td></tr>
<tr class="separator:ae0c6cf6290ca4d7da4faf5ded6d4e669"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81ed4b1636387b6268b9eb0e9a321695"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#a81ed4b1636387b6268b9eb0e9a321695">setFeatureRepresentation</a> (const PointRepresentationConstPtr &amp;fr)</td></tr>
<tr class="memdesc:a81ed4b1636387b6268b9eb0e9a321695"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide a boost shared pointer to a <a class="el" href="classpcl_1_1_point_representation.html" title="PointRepresentation provides a set of methods for converting a point structs/object into an n-dimensi...">PointRepresentation</a> to be used when comparing features  <a href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#a81ed4b1636387b6268b9eb0e9a321695">更多...</a><br /></td></tr>
<tr class="separator:a81ed4b1636387b6268b9eb0e9a321695"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7020f6571847ec48015991da59703986"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#a7020f6571847ec48015991da59703986">getCorrespondenceScore</a> (int index)</td></tr>
<tr class="memdesc:a7020f6571847ec48015991da59703986"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain a score between a pair of correspondences.  <a href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#a7020f6571847ec48015991da59703986">更多...</a><br /></td></tr>
<tr class="separator:a7020f6571847ec48015991da59703986"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a72b1dc82801bf2aac6945cf7a00394"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#a0a72b1dc82801bf2aac6945cf7a00394">isCorrespondenceValid</a> (int index)</td></tr>
<tr class="memdesc:a0a72b1dc82801bf2aac6945cf7a00394"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the correspondence pair at the given index is valid by computing the score and testing it against the user given threshold  <a href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#a0a72b1dc82801bf2aac6945cf7a00394">更多...</a><br /></td></tr>
<tr class="separator:a0a72b1dc82801bf2aac6945cf7a00394"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface.html">pcl::registration::CorrespondenceRejectorFeatures::FeatureContainerInterface</a></td></tr>
<tr class="memitem:af793f259a122a8399ea95b04c0254fdf inherit pub_methods_classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface"><td class="memItemLeft" align="right" valign="top"><a id="af793f259a122a8399ea95b04c0254fdf"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface.html#af793f259a122a8399ea95b04c0254fdf">~FeatureContainerInterface</a> ()</td></tr>
<tr class="memdesc:af793f259a122a8399ea95b04c0254fdf inherit pub_methods_classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty destructor <br /></td></tr>
<tr class="separator:af793f259a122a8399ea95b04c0254fdf inherit pub_methods_classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a9a44284cd20d78251830718cdac8db7f"><td class="memItemLeft" align="right" valign="top"><a id="a9a44284cd20d78251830718cdac8db7f"></a>
FeatureCloudConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>source_features_</b></td></tr>
<tr class="separator:a9a44284cd20d78251830718cdac8db7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add07b89128606cbea0a73bf46939b041"><td class="memItemLeft" align="right" valign="top"><a id="add07b89128606cbea0a73bf46939b041"></a>
FeatureCloudConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>target_features_</b></td></tr>
<tr class="separator:add07b89128606cbea0a73bf46939b041"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae787473b4ba836773113d53a1bd23552"><td class="memItemLeft" align="right" valign="top"><a id="ae787473b4ba836773113d53a1bd23552"></a>
SearchMethod&#160;</td><td class="memItemRight" valign="bottom"><b>search_method_</b></td></tr>
<tr class="separator:ae787473b4ba836773113d53a1bd23552"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1e889733d8e8bbdad50ee271c42a5d0"><td class="memItemLeft" align="right" valign="top"><a id="ad1e889733d8e8bbdad50ee271c42a5d0"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#ad1e889733d8e8bbdad50ee271c42a5d0">thresh_</a></td></tr>
<tr class="memdesc:ad1e889733d8e8bbdad50ee271c42a5d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">The L2 squared Euclidean threshold. <br /></td></tr>
<tr class="separator:ad1e889733d8e8bbdad50ee271c42a5d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0e5a4121c4e671718e654d80d7e0d5f"><td class="memItemLeft" align="right" valign="top"><a id="aa0e5a4121c4e671718e654d80d7e0d5f"></a>
PointRepresentationConstPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">feature_representation_</a></td></tr>
<tr class="memdesc:aa0e5a4121c4e671718e654d80d7e0d5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">The internal point feature representation used. <br /></td></tr>
<tr class="separator:aa0e5a4121c4e671718e654d80d7e0d5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename FeatureT&gt;<br />
class pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer&lt; FeatureT &gt;</h3>

<p>An inner class containing pointers to the source and target feature clouds and the parameters needed to perform the correspondence search. This class extends <a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface.html">FeatureContainerInterface</a>, which contains abstract methods for any methods that do not depend on the FeatureT &mdash; these methods can thus be called from a pointer to <a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface.html">FeatureContainerInterface</a> without casting to the derived class. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a7020f6571847ec48015991da59703986"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7020f6571847ec48015991da59703986">&#9670;&nbsp;</a></span>getCorrespondenceScore()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename FeatureT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual double <a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html">pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer</a>&lt; FeatureT &gt;::getCorrespondenceScore </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain a score between a pair of correspondences. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>the index to check in the list of correspondences </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>score the resultant computed score </dd></dl>

<p>实现了 <a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface.html">pcl::registration::CorrespondenceRejectorFeatures::FeatureContainerInterface</a>.</p>
<div class="fragment"><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            {</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;              <span class="comment">// If no feature representation was given, reset to the default implementation for FeatureT</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;              <span class="keywordflow">if</span> (!<a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">feature_representation_</a>)</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                <a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">feature_representation_</a>.reset (<span class="keyword">new</span> DefaultFeatureRepresentation&lt;FeatureT&gt;);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160; </div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;              <span class="comment">// Get the source and the target feature from the list</span></div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;              <span class="keyword">const</span> FeatureT &amp;feat_src = source_features_-&gt;points[index];</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;              <span class="keyword">const</span> FeatureT &amp;feat_tgt = target_features_-&gt;points[index];</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160; </div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;              <span class="comment">// Check if the representations are valid</span></div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;              <span class="keywordflow">if</span> (!<a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">feature_representation_</a>-&gt;isValid (feat_src) || !<a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">feature_representation_</a>-&gt;isValid (feat_tgt))</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;              {</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                PCL_ERROR (<span class="stringliteral">&quot;[pcl::registration::%s::getCorrespondenceScore] Invalid feature representation given!\n&quot;</span>, this-&gt;<a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features.html#aa5996af869d7aaa6b8b8dc156038dd3f">getClassName</a> ().c_str ());</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                <span class="keywordflow">return</span> (std::numeric_limits&lt;double&gt;::max ());</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;              }</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;              <span class="comment">// Set the internal feature point representation of choice</span></div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;              Eigen::VectorXf feat_src_ptr = Eigen::VectorXf::Zero (<a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">feature_representation_</a>-&gt;getNumberOfDimensions ());</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;              <a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">feature_representation_</a>-&gt;vectorize (FeatureT (feat_src), feat_src_ptr);</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;              Eigen::VectorXf feat_tgt_ptr = Eigen::VectorXf::Zero (<a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">feature_representation_</a>-&gt;getNumberOfDimensions ());</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;              <a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">feature_representation_</a>-&gt;vectorize (FeatureT (feat_tgt), feat_tgt_ptr);</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160; </div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;              <span class="comment">// Compute the L2 norm</span></div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;              <span class="keywordflow">return</span> ((feat_src_ptr - feat_tgt_ptr).squaredNorm ());</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;            }</div>
<div class="ttc" id="aclasspcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_html_aa0e5a4121c4e671718e654d80d7e0d5f"><div class="ttname"><a href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer::feature_representation_</a></div><div class="ttdeci">PointRepresentationConstPtr feature_representation_</div><div class="ttdoc">The internal point feature representation used.</div><div class="ttdef"><b>Definition:</b> correspondence_rejection_features.h:295</div></div>
<div class="ttc" id="aclasspcl_1_1registration_1_1_correspondence_rejector_features_html_aa5996af869d7aaa6b8b8dc156038dd3f"><div class="ttname"><a href="classpcl_1_1registration_1_1_correspondence_rejector_features.html#aa5996af869d7aaa6b8b8dc156038dd3f">pcl::registration::CorrespondenceRejectorFeatures::getClassName</a></div><div class="ttdeci">const std::string &amp; getClassName() const</div><div class="ttdoc">Get a string representation of the name of this class.</div><div class="ttdef"><b>Definition:</b> correspondence_rejection.h:135</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a0a72b1dc82801bf2aac6945cf7a00394"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a72b1dc82801bf2aac6945cf7a00394">&#9670;&nbsp;</a></span>isCorrespondenceValid()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename FeatureT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html">pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer</a>&lt; FeatureT &gt;::isCorrespondenceValid </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check whether the correspondence pair at the given index is valid by computing the score and testing it against the user given threshold </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>the index to check in the list of correspondences </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true if the correspondence is good, false otherwise </dd></dl>

<p>实现了 <a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_interface.html">pcl::registration::CorrespondenceRejectorFeatures::FeatureContainerInterface</a>.</p>
<div class="fragment"><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;            {</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;              <span class="keywordflow">if</span> (<a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#a7020f6571847ec48015991da59703986">getCorrespondenceScore</a> (index) &lt; <a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#ad1e889733d8e8bbdad50ee271c42a5d0">thresh_</a> * <a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#ad1e889733d8e8bbdad50ee271c42a5d0">thresh_</a>)</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                <span class="keywordflow">return</span> (<span class="keyword">true</span>);</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;              <span class="keywordflow">else</span></div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;                <span class="keywordflow">return</span> (<span class="keyword">false</span>);</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;            }</div>
<div class="ttc" id="aclasspcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_html_a7020f6571847ec48015991da59703986"><div class="ttname"><a href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#a7020f6571847ec48015991da59703986">pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer::getCorrespondenceScore</a></div><div class="ttdeci">virtual double getCorrespondenceScore(int index)</div><div class="ttdoc">Obtain a score between a pair of correspondences.</div><div class="ttdef"><b>Definition:</b> correspondence_rejection_features.h:246</div></div>
<div class="ttc" id="aclasspcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container_html_ad1e889733d8e8bbdad50ee271c42a5d0"><div class="ttname"><a href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#ad1e889733d8e8bbdad50ee271c42a5d0">pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer::thresh_</a></div><div class="ttdeci">double thresh_</div><div class="ttdoc">The L2 squared Euclidean threshold.</div><div class="ttdef"><b>Definition:</b> correspondence_rejection_features.h:292</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a81ed4b1636387b6268b9eb0e9a321695"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81ed4b1636387b6268b9eb0e9a321695">&#9670;&nbsp;</a></span>setFeatureRepresentation()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename FeatureT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html">pcl::registration::CorrespondenceRejectorFeatures::FeatureContainer</a>&lt; FeatureT &gt;::setFeatureRepresentation </td>
          <td>(</td>
          <td class="paramtype">const PointRepresentationConstPtr &amp;&#160;</td>
          <td class="paramname"><em>fr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Provide a boost shared pointer to a <a class="el" href="classpcl_1_1_point_representation.html" title="PointRepresentation provides a set of methods for converting a point structs/object into an n-dimensi...">PointRepresentation</a> to be used when comparing features </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fr</td><td>the point feature representation to be used </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;            {</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;              <a class="code" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html#aa0e5a4121c4e671718e654d80d7e0d5f">feature_representation_</a> = fr;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;            }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>registration/include/pcl/registration/<a class="el" href="correspondence__rejection__features_8h_source.html">correspondence_rejection_features.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>registration</b></li><li class="navelem"><a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features.html">CorrespondenceRejectorFeatures</a></li><li class="navelem"><a class="el" href="classpcl_1_1registration_1_1_correspondence_rejector_features_1_1_feature_container.html">FeatureContainer</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
